/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.global.modelo;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ctrosch
 */
@Entity
@Table(name="GRTJUR")
public class Jurisdiccion implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name="GRTJUR_JURISD")
    private String jurisd;

    @Column(name="GRTJUR_DESCRP", length=60)
    private String descrp;

    @Column(name="GRTJUR_PORCEN", precision=2, scale=2)
    private BigDecimal porcen;

    @Column(name="GRTJUR_MINIMO", precision=2, scale=2)
    private BigDecimal minimo;
    
    public String getJurisd() {
        return jurisd;
    }

    public void setJurisd(String jurisd) {
        this.jurisd = jurisd;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }

    public BigDecimal getMinimo() {
        return minimo;
    }

    public void setMinimo(BigDecimal minimo) {
        this.minimo = minimo;
    }

    public BigDecimal getPorcen() {
        return porcen;
    }

    public void setPorcen(BigDecimal porcen) {
        this.porcen = porcen;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Jurisdiccion other = (Jurisdiccion) obj;
        if ((this.jurisd == null) ? (other.jurisd != null) : !this.jurisd.equals(other.jurisd)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 17 * hash + (this.jurisd != null ? this.jurisd.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "tv.global.modelo.Jurisdicciones[id=" + jurisd + "]";
    }

}
